#ifndef _FLY_OBJECT_
#define _FLY_OBJECT_

#include "Object\Object.h"

#include "hge\hgeresource.h"
#include "Core\NetIO.h"

using namespace air;

class FlyObject: public IObject
{
public:
	FlyObject(hgeResourceManager* hgeResMan, HGE* hge, NetIO* _netIO)
		: IObject(hgeResMan, hge), netIO(_netIO) {}
	/**
	 * @brief parse the Packet passed from server
	 *
	 * @param p the packet to be parsed
	 */
	virtual void processPacket(Packet* p) = 0;
protected:
	NetIO* netIO;
	char* username;
	int id;
};

#endif